var webPath = "";
$(document).ready(function(){
	webPath = $("#webPath").val();
	var msg = $("#message").val();
	if(msg != ""){
		alert(msg);
	}
	
	$("#id_queryBtn").hover(
		function(){
			$(this).addClass("query-btn-over");
		},
		function(){
			$(this).removeClass("query-btn-over");
		}
	);
});

function search(){
	var condition = $("#condition").val();
	if(condition != null && string.trim(condition) != ""){
		document.form1.action = webPath + "/business/"+encodeURIComponent(condition)+"/1";
	}else{
		alert("请输入查询条件！");
		$("#condition").focus();
		return false;
	}
}